const {
    Sequelize,
    QueryTypes
} = require("sequelize")
class CreateSequelize {
    constructor() {
        this.db = null
    }
    init_sequeleze() {
        this.db = new Sequelize('stage5', 'root', 'mysql', {
            host: 'localhost',
            dialect: 'mysql'
        });
    }
    select(sql, params) {
        return this.db.query(sql, { type: QueryTypes.SELECT });
    }
}
module.exports = CreateSequelize
